<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>修改资料</title>
    <#include "*/common.ftl">
    <style>
        .layui-form-item .layui-input-company {width: auto;padding-right: 10px;line-height: 38px;}
        .layui-input{width: 500px}
    </style>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form layuimini-form">
            <div class="layui-form-item">
                <label class="layui-form-label required">编号</label>
                <div class="layui-input-block">
                    <input type="text" name="no" lay-verify="required" lay-reqtext="编号不能为空" value="${user.id}" class="layui-input" readonly="readonly" style="background:#CCCCCC">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label required">登录名</label>
                <div class="layui-input-block">
                    <input type="text" name="user_name" lay-verify="required" lay-reqtext="登录名不能为空"   value="${user.userName}" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label required">真实姓名</label>
                <div class="layui-input-block">
                    <input type="text" name="true_name" lay-verify="required" lay-reqtext="真实姓名不能为空" value="${user.trueName}" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label required">邮箱</label>
                <div class="layui-input-block">
                    <input type="text" name="user_email" lay-verify="required" lay-reqtext="邮箱不能为空" value="${user.email}" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label required">电话</label>
                <div class="layui-input-block">
                    <input type="text" name="user_phone" lay-verify="required" lay-reqtext="电话不能为空" value="${user.phone}" class="layui-input">
                </div>
            </div>

            <div class="layui-upload layui-form-item">
                <label class="layui-form-label required">头像</label>
                <div class="layui-upload layui-input-block">
                    <#--  required lay-verify="required" -->
                     <input type="hidden" name="user_img" value="${(user.userImage)!}"/>
                            <button type="button" class="layui-btn layui-btn-primary" id="fileBtn"><i class="layui-icon">&#xe67c;</i>选择文件</button>
                            <button type="button" class="layui-btn layui-btn-warm" id="uploadBtn">开始上传</button>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="saveBtn">确认保存</button>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="${ctx.contextPath}/js/user/setting.js"></script>

</body>
</html>